<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<html>
<head>
 <META http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
</head>
   <body>
      <sec:authorize ifAllGranted="ROLE_ANONYMOUS">
         <div align="center">
	        <img align="middle" alt="Hoomgle" src="img/hoomgle-logoG.JPG">
            <s:form action="search.action"  method="post" align="center">
	           <s:textfield label="" name="query" key="query" size="60" labelSeparator="" ></s:textfield> 	
	           <s:submit type="button" label="Buscar con Hoomgle" method="execute" align="center" ></s:submit>
               <s:actionerror/>               
            </s:form>
            <s:a action="search">Más...</s:a> 
         </div>
       </sec:authorize>
       <sec:authorize ifAllGranted="ROLE_USER">
           <meta HTTP-EQUIV="REFRESH" content="0; url=goListAllHomes.action">
        </sec:authorize>
        <sec:authorize ifAllGranted="ROLE_ADMIN">
            <meta HTTP-EQUIV="REFRESH" content="0; url=goListAllHomes.action">
        </sec:authorize>
    </body>
</html>